package com.haier.npt.sso.resources;

import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.haier.npt.common.JsonResult;
import com.haier.npt.sso.domain.HaierUser;

public interface UserResource {

    @RequestMapping(value = "/user/userinfo", method = RequestMethod.GET)
    JsonResult<Object> getUserInfo(@RequestParam(value = "access_token") String access_token);

    @RequestMapping(value = "/internal/user/list", method = RequestMethod.POST)
    JsonResult<List<HaierUser>> findUsersByIds(@RequestParam(value = "userIds[]", required = false) List<Long> userIds);
}
